Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored cont.index.R and created testcase #156

Merged
merged 33 commits into from
Nov 3, 2022

Conversation

wverastegui
Copy link

Close #111

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
tests/remote-files/run_filter.txt Show resolved Hide resolved
Copy link

@xtrojak xtrojak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job @wverastegui !

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
tests/testthat/test-run_filter.R Outdated Show resolved Hide resolved
R/run_filter.R Outdated Show resolved Hide resolved
hechth and others added 4 commits November 1, 2022 17:53
Co-authored-by: Matej Troják <trojak@mail.muni.cz>
Co-authored-by: Matej Troják <trojak@mail.muni.cz>
Co-authored-by: Matej Troják <trojak@mail.muni.cz>
Co-authored-by: Matej Troják <trojak@mail.muni.cz>
if(ci_skip == TRUE) skip_on_ci()

testdata <- file.path("..", "testdata")
input_path <- file.path(testdata, "input", filename)
Copy link

@xtrojak xtrojak Nov 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are only mzml files in input directory. Maybe you meant filtered? This is related to CI error:

── Error ('test-run_filter.R:9'): test run_filter mbr_test0 ────────────────────
Error: IOError: Failed to open local file '../testdata/input/mbr_test0.parquet'. Detail: [errno 2] No such file or directory
 Backtrace:
    ▆
 1. ├─rlang::eval_tidy(code, args)
 2. ├─base::as.matrix(arrow::read_parquet(input_path)) at test-run_filter.R:9:4
 3. └─arrow::read_parquet(input_path)
 4.   └─arrow:::make_readable_file(file)
 5.     └─arrow::mmap_open(file)
 6.       └─arrow:::io___MemoryMappedFile__Open(path, mode)

Copy link
Author

@wverastegui wverastegui Nov 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test file has been updated to the folder containing the input file (~/filtered/run_filter/). [7a81c10]

@hechth
Copy link
Member

hechth commented Nov 3, 2022

The reason why tests fail is because the testdata is already updated for merging the pr #154

@hechth hechth merged commit cfca085 into RECETOX:master Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor cont.index.R
3 participants